<template>
	<view class="padding30">
		<rich-text :nodes="zhuce" v-if="from==1"></rich-text>
		<rich-text :nodes="yinsi" v-else></rich-text>
	</view>
</template>

<script>
	export default {
		onLoad(opt) {
			this.from=opt.from
			if(opt.from==1) {
				uni.setNavigationBarTitle({
					title:'注册协议'
				})
			}else{
				uni.setNavigationBarTitle({
					title:'隐私政策'
				})
			}
		},
		data() {
			return {
				// from==1注册协议 ==2隐私协议
				from:'',
				zhuce:uni.getStorageSync('config').register_rule,
				yinsi:uni.getStorageSync('config').privacy_policy
			};
		}
	}
</script>

<style lang="scss">
page {
	background-color: #FFFFFF;
}
</style>
